import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root'
})
export class TallySearchExportService {

	ostUrl = 'tjpn4-handle-tally/oneStockTally/';
	tstUrl = 'tjpn4-handle-tally/twoStockTally/';
	bulkUrl = 'tjpn4-handle-tally/bulkTally/';
	api = {
		ostTallySearchExportPage: this.ostUrl + 'tallySearchExportPage',
		ostTallySearchExportTotal: this.ostUrl + 'tallySearchExportTotal',

		tstTallySearchExportPage: this.tstUrl + 'tallySearchExportPage',
		tstTallySearchExportTotal: this.tstUrl + 'tallySearchExportTotal',

		bulkTallySearchExportPage: this.bulkUrl + 'tallySearchExportPage',
		bulkTallySearchExportTotal: this.bulkUrl + 'tallySearchExportTotal',
	};
	constructor(private http: _HttpClient) {
	}

	ostTallySearchExportPage(params: any) : any {
		return this.http.get(this.api.ostTallySearchExportPage, params);
	}

	ostTallySearchExportTotal(params: any) : any {
		return this.http.get(this.api.ostTallySearchExportTotal, params);
	}

	tstTallySearchExportPage(params: any) : any {
		return this.http.get(this.api.tstTallySearchExportPage, params);
	}

	tstTallySearchExportTotal(params: any) : any {
		return this.http.get(this.api.tstTallySearchExportTotal, params);
	}

	bulkTallySearchExportPage(params: any) : any {
		return this.http.get(this.api.bulkTallySearchExportPage, params);
	}

	bulkTallySearchExportTotal(params: any) : any {
		return this.http.get(this.api.bulkTallySearchExportTotal, params);
	}
}
